package user;

import book.BookList;
import opeartion.IOPeration;

/**
 * Created by cc
 * Description:
 * User: CZH
 * Date: 2022-09-23
 * Time: 19:31
 */
public abstract class User {
    protected String name;

    //声明一个数组
    protected IOPeration[] ioPerations;

    public User(String name){
        this.name = name;
    }

    public abstract int menu();

    public void doOperation(int choice, BookList bookList){
        this.ioPerations[choice].work(bookList);
    }
}
